package com.baige.api.app.sdk.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;

/**
 * 用户新增地址请求对象
 * @author wulg
 * @date 2018/12/13.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "UserAddressRequest", description = "用户新增地址请求对象")
public class UserAddressRequest implements Serializable
{
    @NotEmpty(message = "联系人不能为空")
    @ApiModelProperty(value = "联系人名称")
    private String contactName;

    @NotEmpty(message = "联系人不能为空")
    @ApiModelProperty(value = "联系人电话")
    private String contactPhone;

    @NotEmpty(message = "联系人不能为空")
    @ApiModelProperty(value = "省")
    private String province;

    @NotEmpty(message = "联系人不能为空")
    @ApiModelProperty(value = "市")
    private String city;

    @NotEmpty(message = "联系人不能为空")
    @ApiModelProperty(value = "区")
    private String area;

    @NotEmpty(message = "联系人不能为空")
    @ApiModelProperty(value = "详细地址")
    private String addressDetail;

    @ApiModelProperty(value = "纬度")
    private double latitude;

    @ApiModelProperty(value = "经度")
    private double longitude;
}
